package loupan_swiper_utils

import (
	"hft/Database/admin"
)

func FindLouPanName(louList []*admin.LouPan, id uint) string {
	for _, v := range louList {
		if v.ID == id {
			return v.Name
		}
	}
	return ""
}

// 判断是否包含该楼盘
func IsContainThisLou(louList []*admin.LouPan, id uint) bool {
	for _, v := range louList {
		if v.ID == id {
			return true
		}
	}
	return false
}
